﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdm.Master" AutoEventWireup="true"
    CodeBehind="ListaServicos.aspx.cs" Inherits="AgileSaude.Web.Admin.ListaServicos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <!-- TÍTULO DA PÁGINA -->
    <div class="area-titulo container-fluid">
        <div class="container">
            <h2 class="titulo">
                Serviços</h2>
        </div>
    </div>
    <!-- FIM DO TÍTULO -->
    <div class="container">
        <div class="row">
            <asp:LinkButton ID="btnNovo" runat="server" class="btn btn-info btn-md" Text="&#xf067; Novo Serviço"
                PostBackUrl="~/Admin/ServicoEdit.aspx" />
        </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="gvServicos" runat="server" AutoGenerateColumns="False" SkinID="CadastrosGrid"
                    CssClass="table table-striped table-bordered table-hover" DataKeyNames="IdServico"
                    AllowSorting="true" OnRowCommand="gvServicos_RowCommand" OnSorting="gvServicos_Sorting"
                    OnRowDataBound="gvServicos_RowDataBound" PageSize="15" OnPageIndexChanging="gvServicos_PageIndexChanging"
                    AllowPaging="true">
                    <Columns>
                        <asp:BoundField DataField="TipoServicoDescricao" HeaderText="Tipo Serviço"
                            SortExpression="TipoServicoDescricao">
                            <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="15%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome">
                            <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="30%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Descricao" HeaderText="Descrição" SortExpression="Descricao">
                            <ItemStyle HorizontalAlign="Left" BorderColor="White" Width="40%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Opções">
                            <ItemStyle HorizontalAlign="Center" BorderColor="White" Width="15%" />
                            <ItemTemplate>
                                <asp:LinkButton ID="imgEditar" class="btn btn-acoes" runat="server" CommandName="Editar"
                                    ToolTip="Editar"><i class="fa fa-pencil fa-lg"></i></asp:LinkButton>
                                <asp:LinkButton ID="imgVisualizar" class="btn btn-acoes" runat="server" CommandName="Visualizar"
                                    ToolTip="Visualizar"><i class="fa fa-search fa-lg"></i></asp:LinkButton>
                                <asp:LinkButton ID="lnkDeletar" class="btn btn-acoes-danger" runat="server" CommandName="Deletar"
                                    ToolTip="Deletar" OnClientClick="return confirm('Deseja realmente Deletar?');"
                                    OnClick="lnkDeletar_Click"><i class="fa fa-trash-o fa-lg"></i></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </div>
</asp:Content>
